<html>
  <head>
    <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>申请Copilot | Gridea</title>
<link rel="shortcut icon" href="https://dalanmiao.gitee.io/blog//favicon.ico?v=1680185769603">
<link href="https://cdn.jsdelivr.net/npm/remixicon@2.3.0/fonts/remixicon.css" rel="stylesheet">
<link rel="stylesheet" href="https://dalanmiao.gitee.io/blog//styles/main.css">
<link rel="alternate" type="application/atom+xml" title="申请Copilot | Gridea - Atom Feed" href="https://dalanmiao.gitee.io/blog//atom.xml">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Droid+Serif:400,700">



    <meta name="description" content="1.首先申请copilot
地址: https://github.com/github-copilot/chat_waitlist_signup/join
会填一些基础信息 国家 城市 公司 公寓 随便填
然后会要求绑定信用卡或者paypa..." />
    <meta name="keywords" content="copilot" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.10.0/katex.min.css">
    <script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.5.1/build/highlight.min.js"></script>
  </head>
  <body>
    <div class="main">
      <div class="main-content">
        <div class="site-header">
  <a href="https://dalanmiao.gitee.io/blog/">
  <img class="avatar" src="https://dalanmiao.gitee.io/blog//images/avatar.png?v=1680185769603" alt="">
  </a>
  <h1 class="site-title">
    Gridea
  </h1>
  <p class="site-description">
    温故而知新
  </p>
  <div class="menu-container">
    
      
        <a href="/" class="menu">
          首页
        </a>
      
    
      
        <a href="/archives" class="menu">
          归档
        </a>
      
    
      
        <a href="/tags" class="menu">
          标签
        </a>
      
    
      
        <a href="/post/about" class="menu">
          关于
        </a>
      
    
  </div>
  <div class="social-container">
    
      
    
      
    
      
    
      
    
      
    
  </div>
</div>

        <div class="post-detail">
          <article class="post">
            <h2 class="post-title">
              申请Copilot
            </h2>
            <div class="post-info">
              <span>
                2023-03-30
              </span>
              <span>
                4 min read
              </span>
              
                <a href="https://dalanmiao.gitee.io/blog/tag/PWixmAgVL/" class="post-tag">
                  # copilot
                </a>
              
            </div>
            
            <div class="post-content-wrapper">
              <div class="post-content" v-pre>
                <h1 id="1首先申请copilot">1.首先申请copilot</h1>
<p>地址: https://github.com/github-copilot/chat_waitlist_signup/join</p>
<p>会填一些基础信息 国家 城市 公司 公寓 随便填</p>
<p>然后会要求绑定信用卡或者paypal  没有信用卡去注册一个paypal账户，绑定借记卡也是一样的</p>
<p>绑定完成后就完事了</p>
<h1 id="2idea使用copilot-jb家都一样">2.IDEA使用copilot JB家都一样</h1>
<h2 id="21安装插件">2.1安装插件</h2>
<p>首先在plugins的marketplace 搜索安装Github Copilot插件  如果搜索不到，自己添加一下idea的插件仓库地址</p>
<p>添加仓库地址步骤</p>
<p>​	1.点击旁边的齿轮 点击Manage Plugin Repositories...</p>
<p>​	2.填入https://plugins.jetbrains.com/?idea</p>
<p>安装完了 重启IDE</p>
<h2 id="22获取授权">2.2获取授权</h2>
<p>点击Tools-Github Copilot-Login to Github，会弹窗让你输设备码，</p>
<pre><code>//如果报这个错 需要去改hosts 按照下方更改后 cmd ipconfig /flushdns刷新dns缓存
Request sign ln Initiate failed with message:read ECONNRESET, request id: 6, error code:-32603
</code></pre>
<pre><code># GitHub520 Host Start
140.82.112.25                 alive.github.com
140.82.114.6                  api.github.com
185.199.110.153               assets-cdn.github.com
185.199.108.133               avatars.githubusercontent.com
185.199.108.133               avatars0.githubusercontent.com
185.199.108.133               avatars1.githubusercontent.com
185.199.108.133               avatars2.githubusercontent.com
185.199.108.133               avatars3.githubusercontent.com
185.199.108.133               avatars4.githubusercontent.com
185.199.108.133               avatars5.githubusercontent.com
185.199.108.133               camo.githubusercontent.com
140.82.113.22                 central.github.com
185.199.108.133               cloud.githubusercontent.com
140.82.113.9                  codeload.github.com
140.82.112.22                 collector.github.com
185.199.108.133               desktop.githubusercontent.com
185.199.108.133               favicons.githubusercontent.com
140.82.112.4                  gist.github.com
52.216.146.155                github-cloud.s3.amazonaws.com
52.217.204.137                github-com.s3.amazonaws.com
54.231.163.81                 github-production-release-asset-2e65be.s3.amazonaws.com
52.217.44.156                 github-production-repository-file-5c1aeb.s3.amazonaws.com
52.216.54.145                 github-production-user-asset-6210df.s3.amazonaws.com
192.0.66.2                    github.blog
140.82.112.4                  github.com
140.82.114.17                 github.community
185.199.109.154               github.githubassets.com
151.101.65.194                github.global.ssl.fastly.net
185.199.110.153               github.io
185.199.108.133               github.map.fastly.net
185.199.110.153               githubstatus.com
140.82.112.25                 live.github.com
185.199.108.133               media.githubusercontent.com
185.199.108.133               objects.githubusercontent.com
13.107.43.16                  pipelines.actions.githubusercontent.com
185.199.108.133               raw.githubusercontent.com
185.199.108.133               user-images.githubusercontent.com
13.107.238.40                 vscode.dev
 
 
# Update time: 2022-12-07T08:20:22+08:00
# Update url: https://raw.hellogithub.com/hosts
# Star me: https://github.com/521xueweihan/GitHub520
# GitHub520 Host End
</code></pre>
<p>点击copy and open打开网址 或者直接地址栏输入https://github.com/login/device 输入设备码</p>
<p>点击Authorize Github Copilot Plugin</p>
<p>IDE会弹窗 点击OK确认</p>
<p>使用 随便输一段方法头 按tab 会出现灰色的代码 按一下就有了 或者英文输一段注释 按enter等生成 按tab逐行生成代码</p>
<h1 id="3vscode">3.VSCode</h1>
<h2 id="31-安装扩展">3.1 安装扩展</h2>
<p>扩展里搜Github Copilots 安装</p>
<h2 id="32-获取授权">3.2 获取授权</h2>
<p>装好了直接点击授权完事  跟上面差不多</p>

              </div>
              <div class="toc-container">
                <ul class="markdownIt-TOC">
<li><a href="#1%E9%A6%96%E5%85%88%E7%94%B3%E8%AF%B7copilot">1.首先申请copilot</a></li>
<li><a href="#2idea%E4%BD%BF%E7%94%A8copilot-jb%E5%AE%B6%E9%83%BD%E4%B8%80%E6%A0%B7">2.IDEA使用copilot JB家都一样</a>
<ul>
<li><a href="#21%E5%AE%89%E8%A3%85%E6%8F%92%E4%BB%B6">2.1安装插件</a></li>
<li><a href="#22%E8%8E%B7%E5%8F%96%E6%8E%88%E6%9D%83">2.2获取授权</a></li>
</ul>
</li>
<li><a href="#3vscode">3.VSCode</a>
<ul>
<li><a href="#31-%E5%AE%89%E8%A3%85%E6%89%A9%E5%B1%95">3.1 安装扩展</a></li>
<li><a href="#32-%E8%8E%B7%E5%8F%96%E6%8E%88%E6%9D%83">3.2 获取授权</a></li>
</ul>
</li>
</ul>

              </div>
            </div>
          </article>
        </div>

        
          <div class="next-post">
            <div class="next">下一篇</div>
            <a href="https://dalanmiao.gitee.io/blog/post/hello-gridea/">
              <h3 class="post-title">
                Hello Gridea
              </h3>
            </a>
          </div>
        

        

        <div class="site-footer">
  Powered by <a href="https://github.com/getgridea/gridea" target="_blank">Gridea</a>
  <a class="rss" href="https://dalanmiao.gitee.io/blog//atom.xml" target="_blank">
    <i class="ri-rss-line"></i> RSS
  </a>
</div>

      </div>
    </div>

    <script>
      hljs.initHighlightingOnLoad()

      let mainNavLinks = document.querySelectorAll(".markdownIt-TOC a");

      // This should probably be throttled.
      // Especially because it triggers during smooth scrolling.
      // https://lodash.com/docs/4.17.10#throttle
      // You could do like...
      // window.addEventListener("scroll", () => {
      //    _.throttle(doThatStuff, 100);
      // });
      // Only not doing it here to keep this Pen dependency-free.

      window.addEventListener("scroll", event => {
        let fromTop = window.scrollY;

        mainNavLinks.forEach((link, index) => {
          let section = document.getElementById(decodeURI(link.hash).substring(1));
          let nextSection = null
          if (mainNavLinks[index + 1]) {
            nextSection = document.getElementById(decodeURI(mainNavLinks[index + 1].hash).substring(1));
          }
          if (section.offsetTop <= fromTop) {
            if (nextSection) {
              if (nextSection.offsetTop > fromTop) {
                link.classList.add("current");
              } else {
                link.classList.remove("current");    
              }
            } else {
              link.classList.add("current");
            }
          } else {
            link.classList.remove("current");
          }
        });
      });

    </script>
  </body>
</html>
